<?php

/**
 * Created by PhpStorm.
 * User: yf
 * Date: 2018/3/3
 * Time: 下午6:47
 */
namespace App\Model\Message;

use App\Model\Model;

class MessageModel extends Model
{

    function addMessage(MessageBean $message)
    {
        $this->getModel();
        $re = $this->dbConnector()->insert($this->prefix . 'message', $message->objToArray(true));
        $this->free();
        return $re;
    }
}